<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Webpage Snapshot</h1>
<p>Click the button below to generate a snapshot of this webpage.</p>
<button id="snapshotButton">Generate Snapshot</button>
<div id="snapshotContainer"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.0/html2canvas.min.js"></script>
<script>
    document.getElementById('snapshotButton').addEventListener('click', function() {
        html2canvas(document.body).then(function(canvas) {
            var snapshotContainer = document.getElementById('snapshotContainer');
            snapshotContainer.appendChild(canvas);

            var a = document.createElement('a');
            a.download = 'snapshot.png';
            a.href = canvas.toDataURL('image/png');
            a.textContent = 'Download Snapshot';
            snapshotContainer.appendChild(a);
        });
    });
</script>
</body>
</html>